<?php

/**
 * 打折
 * Class CashRebate
 */
class CashRebate extends Cash
{
    private $discount = 1;

    public function __construct($discount)
    {
        $this->discount = $discount;
    }

    public function acceptMoney($money)
    {
        return $money * $this->discount;
    }
}